<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>武汉市中联众鑫建筑机械有限公司</title>
<meta name="keywords" content="塔式起重机出租，施工升降机出租，建筑设备出，武汉市中联众鑫建筑机械有限公司">
<meta name="description" content="武汉市中联众鑫建筑机械有限公司成立于2012年12月25日。承接各类塔式起重机、施工升降机租赁、安装、维修、售后服务一家专业提供塔吊、施工电梯的安装拆卸 、维修、售后服务、等建筑机械设备租赁、零配件供应的服务企业">
<link rel="stylesheet" media="all" type="text/css" href="index.css" />
<style type="text/css">
.paging {
	text-align : right;
	padding-right : 5px;
	padding-top : 5px;
	padding-bottom : 5px;
}
.paging span {
	padding-left : 5px;
	padding-right : 5px;
	padding-top : 3px;
	padding-bottom : 3px;
	border : 1px solid #DEDEDE;
}
</style>
</head>

<body>
<?php include 'top.php';
		include 'business/dao/BaseDataAccess.php';
		include 'business/dao/NewsAccess.php';
		include 'business/model/model.php';
		ini_set('display_errors',1);
		date_default_timezone_set("Asia/Shanghai");
		
		$newsDao = new NewsDao();
		?>

<!--center-->
<div class="box centent">
	<?php include 'left.php'; ?>
		<div class="right">
			<div class="center">
				<dl><h1>最新动态</h1></dl>
				<?php
				if (isset($_GET["id"])) {
					$id = $_GET["id"];
					$new = $newsDao->getNew($id);
					$newsDao->incrementCount($id);
					$nextNew = $new->getNextNew();
					$prevNew = $new->getPrevNew();
				?>
				<div style="font-size:14px; font-weight:bold;padding-top:20px;padding-bottom:5px;"><?php echo $new->getTitle()?></div>
				<div style="margin-top:3px;margin-bottom:4px;margin-bottom:5px;height:1px;background-image: url(images/line.jpg)"></div>
				<div style="padding-bottom:5px;">[ 作者：<?php echo $new->getAuthor()?>&nbsp;&nbsp;发布时间：<?php echo $new->getPublishDate()?>&nbsp;&nbsp;浏览次数：<?php echo $new->getCount()?>次 ]</div>
				<div style="text-align: left;"><?php echo $new->getContent()?></div>
				<?php if ($prevNew != null) {?>
				<div style="text-align:left;">上一篇：<a href="show_new.php?id=<?php echo $prevNew->getId()?>"><?php echo $prevNew->getTitle()?></a></div>
				<?php } if ($nextNew != null) {?>
				<div style="text-align:left;">下一篇：<a href="show_new.php?id=<?php echo $nextNew->getId()?>"><?php echo $nextNew->getTitle()?></a></div>
				<?php
					}
				} else {
					echo "文章未找到！";
				} 
				?>
			</div>
		</div>
</div>
		
		
<?php include 'bottom.php';?>
</body>
</html>